<?php

namespace app\common\model;

use think\Request;
use think\Exception;
/**
 * 
 * 
 * @package app\common\model
 */
class EventOrder extends BaseModel
{
    protected $name = 'event_order';
    protected $autoWriteTimestamp = false;
    
    public static function getEventOrder($id)
    {
        $result = self::get($id);
        if (!$result) {
            throw new Exception('查不到该订单');
        } 
        return $result;
    }
    
}
